import { createRouter, createWebHistory } from 'vue-router';
import HomePage from '../views/HomePage.vue';
import RestaurantDetailPage from '../views/RestaurantDetailPage.vue';
import UserProfilePage from '../views/UserProfilePage.vue';

const routes = [
    { path: '/', name: 'Home', component: HomePage },
    { path: '/restaurant/:id', name: 'RestaurantDetail', component: RestaurantDetailPage },
    { path: '/user', name: 'UserProfile', component: UserProfilePage },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;
